﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LX.Core.Query
{
    public class PagedList<T>
    {
        public List<T> Data { get; set; }
        public int Total { get; set; }
        public int Page { get; set; }
        public int PageSize { get; set; }

        public int PageCount
        {
            get { if (PageSize == 0 || Total == 0) return 0;
                return (int) Math.Ceiling((double)Total/PageSize);
            }
        }
    }
}
